home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2557 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 66 75 6e 64 70 |Path: ne|ws.fundp|
|00000010| 2e 61 63 2e 62 65 21 6e | 65 77 73 6d 61 73 74 65 |.ac.be!n|ewsmaste|
|00000020| 72 0a 46 72 6f 6d 3a 20 | 46 72 61 6e 63 69 73 63 |r.From: |Francisc|
|00000030| 6f 20 4d 65 6c 6f 20 4c | 65 64 65 72 6d 61 6e 6e |o Melo L|edermann|
|00000040| 20 3c 66 6d 65 6c 6f 40 | 62 69 71 2e 66 75 6e 64 | <fmelo@|biq.fund|
|00000050| 70 2e 61 63 2e 62 65 3e | 0a 4e 65 77 73 67 72 6f |p.ac.be>|.Newsgro|
|00000060| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000070| 0a 53 75 62 6a 65 63 74 | 3a 20 43 61 6e 20 62 65 |.Subject|: Can be|
|00000080| 20 43 20 61 20 73 6f 20 | 73 74 72 61 6e 67 65 20 | C a so |strange |
|00000090| 6c 61 6e 67 75 61 67 65 | 20 3f 3f 3f 2e 20 50 72 |language| ???. Pr|
|000000a0| 6f 62 6c 65 6d 20 77 69 | 74 68 20 61 20 66 75 6e |oblem wi|th a fun|
|000000b0| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 69 6e 67 20 |ction re|turning |
|000000c0| 61 20 70 6f 69 6e 74 65 | 72 2e 2e 2e 0a 44 61 74 |a pointe|r....Dat|
|000000d0| 65 3a 20 32 32 20 4a 61 | 6e 20 31 39 39 36 20 31 |e: 22 Ja|n 1996 1|
|000000e0| 32 3a 34 39 3a 35 35 20 | 47 4d 54 0a 4f 72 67 61 |2:49:55 |GMT.Orga|
|000000f0| 6e 69 7a 61 74 69 6f 6e | 3a 20 46 55 4e 44 50 2c |nization|: FUNDP,|
|00000100| 20 4e 61 6d 75 72 2c 20 | 42 65 6c 67 69 75 6d 0a | Namur, |Belgium.|
|00000110| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 34 65 30 |Message-|ID: <4e0|
|00000120| 31 35 6a 24 64 72 74 40 | 68 65 72 6d 65 73 2e 66 |15j$drt@|hermes.f|
|00000130| 75 6e 64 70 2e 61 63 2e | 62 65 3e 0a 4e 4e 54 50 |undp.ac.|be>.NNTP|
|00000140| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 62 |-Posting|-Host: b|
|00000150| 69 71 2d 70 63 31 2e 62 | 69 71 2e 66 75 6e 64 70 |iq-pc1.b|iq.fundp|
|00000160| 2e 61 63 2e 62 65 0a 4d | 69 6d 65 2d 56 65 72 73 |.ac.be.M|ime-Vers|
|00000170| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000180| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|00000190| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001a0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001b0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|000001c0| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|000001d0| 7a 69 6c 6c 61 20 31 2e | 32 32 20 28 57 69 6e 64 |zilla 1.|22 (Wind|
|000001e0| 6f 77 73 3b 20 49 3b 20 | 31 36 62 69 74 29 0a 54 |ows; I; |16bit).T|
|000001f0| 6f 3a 20 66 6d 65 6c 6f | 40 62 69 71 2e 66 75 6e |o: fmelo|@biq.fun|
|00000200| 64 70 2e 61 63 2e 62 65 | 0a 0a 48 69 20 65 76 65 |dp.ac.be|..Hi eve|
|00000210| 72 79 62 6f 64 79 20 21 | 2c 20 49 20 68 61 76 65 |rybody !|, I have|
|00000220| 20 61 20 70 72 6f 62 6c | 65 6d 20 74 68 61 74 20 | a probl|em that |
|00000230| 66 6f 72 20 6d 65 20 61 | 70 70 65 61 72 73 20 74 |for me a|ppears t|
|00000240| 6f 20 61 20 72 65 61 6c | 6c 79 20 73 74 72 61 6e |o a real|ly stran|
|00000250| 67 65 20 0a 6f 6e 65 2e | 20 49 20 68 61 76 65 20 |ge .one.| I have |
|00000260| 61 20 66 75 6e 63 74 69 | 6f 6e 20 74 68 61 74 20 |a functi|on that |
|00000270| 63 61 6c 6c 20 61 6e 6f | 74 68 65 72 20 66 75 6e |call ano|ther fun|
|00000280| 63 74 69 6f 6e 2e 20 54 | 68 65 20 66 75 6e 63 74 |ction. T|he funct|
|00000290| 69 6f 6e 20 0a 74 68 61 | 74 20 69 73 20 63 61 6c |ion .tha|t is cal|
|000002a0| 6c 65 64 20 69 73 20 74 | 68 65 20 6e 65 78 74 20 |led is t|he next |
|000002b0| 6f 6e 65 3a 0a 0a 73 74 | 72 75 63 74 20 68 65 61 |one:..st|ruct hea|
|000002c0| 76 79 5f 61 74 6f 6d 20 | 2a 53 65 74 5f 50 6f 73 |vy_atom |*Set_Pos|
|000002d0| 69 74 69 6f 6e 5f 41 41 | 5f 4e 75 6d 62 65 72 20 |ition_AA|_Number |
|000002e0| 28 69 6e 74 20 72 65 73 | 69 64 75 65 5f 6e 75 6d |(int res|idue_num|
|000002f0| 62 65 72 2c 20 0a 20 20 | 20 20 20 20 20 20 20 20 |ber, . | |
|00000300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 74 | | st|
|00000320| 72 75 63 74 20 68 65 61 | 76 79 5f 61 74 6f 6d 20 |ruct hea|vy_atom |
|00000330| 2a 70 6f 73 69 74 69 6f | 6e 5f 70 74 72 29 0a 7b |*positio|n_ptr).{|
|00000340| 0a 20 69 6e 74 20 6f 75 | 74 3b 0a 20 0a 20 6f 75 |. int ou|t;. . ou|
|00000350| 74 20 3d 20 30 3b 0a 0a | 20 77 68 69 6c 65 20 28 |t = 0;..| while (|
|00000360| 6f 75 74 20 21 3d 20 31 | 29 0a 20 7b 0a 20 20 69 |out != 1|). {. i|
|00000370| 66 20 28 28 2a 70 6f 73 | 69 74 69 6f 6e 5f 70 74 |f ((*pos|ition_pt|
|00000380| 72 29 2e 72 65 73 5f 6e | 75 6d 62 65 72 20 21 3d |r).res_n|umber !=|
|00000390| 20 72 65 73 69 64 75 65 | 5f 6e 75 6d 62 65 72 29 | residue|_number)|
|000003a0| 0a 20 20 7b 0a 20 20 20 | 69 66 20 28 28 2a 70 6f |. {. |if ((*po|
|000003b0| 73 69 74 69 6f 6e 5f 70 | 74 72 29 2e 63 6f 6f 68 |sition_p|tr).cooh|
|000003c0| 5f 70 74 72 20 21 3d 20 | 4e 55 4c 4c 29 0a 20 20 |_ptr != |NULL). |
|000003d0| 20 7b 0a 20 20 20 20 70 | 6f 73 69 74 69 6f 6e 5f | {. p|osition_|
|000003e0| 70 74 72 20 3d 20 28 2a | 70 6f 73 69 74 69 6f 6e |ptr = (*|position|
|000003f0| 5f 70 74 72 29 2e 63 6f | 6f 68 5f 70 74 72 3b 0a |_ptr).co|oh_ptr;.|
|00000400| 20 20 20 7d 0a 20 20 7d | 0a 20 20 20 65 6c 73 65 | }. }|. else|
|00000410| 0a 20 20 20 7b 0a 20 20 | 20 20 72 65 74 75 72 6e |. {. | return|
|00000420| 20 28 70 6f 73 69 74 69 | 6f 6e 5f 70 74 72 29 3b | (positi|on_ptr);|
|00000430| 0a 20 20 20 20 6f 75 74 | 20 3d 20 31 3b 0a 20 20 |. out| = 1;. |
|00000440| 20 7d 0a 20 7d 0a 7d 20 | 20 20 2f 2a 20 65 6e 64 | }. }.} | /* end|
|00000450| 20 6f 66 20 53 65 74 5f | 50 6f 73 69 74 69 6f 6e | of Set_|Position|
|00000460| 5f 41 41 5f 4e 75 6d 62 | 65 72 20 66 75 6e 63 74 |_AA_Numb|er funct|
|00000470| 69 6f 6e 20 2a 2f 0a 0a | 0a 54 68 65 20 6f 74 68 |ion */..|.The oth|
|00000480| 65 72 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |er funct|ion that|
|00000490| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 63 61 | contain|s the ca|
|000004a0| 6c 6c 20 69 73 20 74 68 | 65 20 6e 65 78 74 20 6f |ll is th|e next o|
|000004b0| 6e 65 3a 0a 0a 28 76 6f | 69 64 29 20 46 75 6e 63 |ne:..(vo|id) Func|
|000004c0| 74 69 6f 6e 5f 43 61 6c | 6c 65 72 20 28 29 0a 7b |tion_Cal|ler ().{|
|000004d0| 0a 69 6e 74 20 63 6f 75 | 6e 74 65 72 3b 0a 0a 73 |.int cou|nter;..s|
|000004e0| 74 72 75 63 74 20 68 65 | 61 76 79 5f 61 74 6f 6d |truct he|avy_atom|
|000004f0| 20 2a 66 69 72 73 74 5f | 61 74 6f 6d 2c 0a 20 20 | *first_|atom,. |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 2a 61 63 74 75 61 6c 5f | 61 74 6f 6d 3b 0a 0a 2e |*actual_|atom;...|
|00000520| 2e 0a 2e 2e 0a 0a 61 63 | 74 75 61 6c 5f 61 74 6f |......ac|tual_ato|
|00000530| 6d 20 3d 20 53 65 74 5f | 50 6f 73 69 74 69 6f 6e |m = Set_|Position|
|00000540| 5f 41 41 5f 4e 75 6d 62 | 65 72 20 28 63 6f 75 6e |_AA_Numb|er (coun|
|00000550| 74 65 72 2c 20 66 69 72 | 73 74 5f 61 74 6f 6d 29 |ter, fir|st_atom)|
|00000560| 3b 0a 0a 2e 2e 0a 2e 2e | 0a 0a 7d 20 20 20 2f 2a |;.......|..} /*|
|00000570| 20 65 6e 64 20 6f 66 20 | 46 75 6e 63 74 69 6f 6e | end of |Function|
|00000580| 5f 43 61 6c 6c 65 72 20 | 2a 2f 0a 0a 0a 54 68 65 |_Caller |*/...The|
|00000590| 20 70 72 6f 62 6c 65 6d | 20 69 73 20 69 66 20 49 | problem| is if I|
|000005a0| 20 64 65 62 62 75 67 20 | 61 6e 64 20 63 68 65 63 | debbug |and chec|
|000005b0| 6b 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 76 61 |k the cu|rrent va|
|000005c0| 6c 75 65 73 20 6a 75 73 | 74 20 69 6e 20 74 68 65 |lues jus|t in the|
|000005d0| 20 6c 69 6e 65 20 0a 62 | 65 66 6f 72 65 20 63 61 | line .b|efore ca|
|000005e0| 6c 6c 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |ll the f|unction |
|000005f0| 49 20 68 61 76 65 3a 0a | 0a 63 6f 75 6e 74 65 72 |I have:.|.counter|
|00000600| 20 3d 20 31 0a 28 2a 66 | 69 72 73 74 5f 61 74 6f | = 1.(*f|irst_ato|
|00000610| 6d 29 2e 72 65 73 5f 6e | 75 6d 62 65 72 20 3d 20 |m).res_n|umber = |
|00000620| 31 0a 0a 62 75 74 20 74 | 68 65 20 66 75 6e 63 74 |1..but t|he funct|
|00000630| 69 6f 6e 20 72 65 63 65 | 69 76 65 73 3a 0a 0a 63 |ion rece|ives:..c|
|00000640| 6f 75 6e 74 65 72 20 3d | 20 30 0a 28 2a 66 69 72 |ounter =| 0.(*fir|
|00000650| 73 74 5f 61 74 6f 6d 29 | 2e 72 65 73 5f 6e 75 6d |st_atom)|.res_num|
|00000660| 62 65 72 20 3d 20 31 0a | 0a 0a 49 20 61 6d 20 72 |ber = 1.|..I am r|
|00000670| 65 61 6c 6c 79 20 73 75 | 72 70 72 69 73 65 64 20 |eally su|rprised |
|00000680| 61 62 6f 75 74 20 74 68 | 61 74 2e 20 49 20 61 6d |about th|at. I am|
|00000690| 20 6e 6f 74 20 61 20 43 | 20 65 78 70 65 72 74 20 | not a C| expert |
|000006a0| 70 72 6f 67 72 61 6d 6d | 65 72 20 61 6e 64 20 74 |programm|er and t|
|000006b0| 68 69 73 20 0a 69 73 20 | 74 68 65 20 66 69 72 73 |his .is |the firs|
|000006c0| 74 20 74 69 6d 65 20 74 | 68 61 74 20 49 20 63 6f |t time t|hat I co|
|000006d0| 6e 73 74 72 75 63 74 20 | 61 20 66 75 6e 63 74 69 |nstruct |a functi|
|000006e0| 6f 6e 20 74 68 61 74 20 | 72 65 74 75 72 6e 73 20 |on that |returns |
|000006f0| 61 20 70 6f 69 6e 74 65 | 72 2c 20 61 6e 64 20 0a |a pointe|r, and .|
|00000700| 49 20 61 6d 20 73 75 72 | 65 20 74 68 61 74 20 74 |I am sur|e that t|
|00000710| 68 65 20 70 72 6f 62 6c | 65 6d 20 69 73 20 67 6f |he probl|em is go|
|00000720| 69 6e 67 20 69 6e 20 74 | 68 61 74 20 77 61 79 2c |ing in t|hat way,|
|00000730| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 73 61 6d | because| the sam|
|00000740| 65 20 0a 66 75 6e 63 74 | 69 6f 6e 20 77 6f 72 6b |e .funct|ion work|
|00000750| 73 20 66 6f 72 20 6d 65 | 20 77 69 74 68 6f 75 74 |s for me| without|
|00000760| 20 72 65 74 75 72 6e 20 | 61 20 70 6f 69 6e 74 65 | return |a pointe|
|00000770| 72 2e 20 57 68 61 74 27 | 73 20 67 6f 69 6e 67 20 |r. What'|s going |
|00000780| 6f 6e 20 68 65 72 65 20 | 3f 2e 20 0a 46 6f 72 20 |on here |?. .For |
|00000790| 6d 65 20 74 68 69 73 20 | 69 73 20 61 20 72 65 61 |me this |is a rea|
|000007a0| 6c 6c 79 20 73 74 72 61 | 6e 67 65 20 74 68 69 6e |lly stra|nge thin|
|000007b0| 67 20 61 62 6f 75 74 20 | 43 2e 20 54 68 65 20 46 |g about |C. The F|
|000007c0| 41 51 20 64 6f 65 73 6e | 27 74 20 63 6f 76 65 72 |AQ doesn|'t cover|
|000007d0| 20 0a 61 62 6f 75 74 20 | 66 75 6e 63 74 69 6f 6e | .about |function|
|000007e0| 73 20 72 65 74 75 72 6e | 69 6e 67 20 70 6f 69 6e |s return|ing poin|
|000007f0| 74 65 72 73 20 28 61 6e | 64 20 61 62 6f 75 74 20 |ters (an|d about |
|00000800| 66 75 6e 63 69 6f 6e 73 | 20 69 6e 20 67 65 6e 65 |funcions| in gene|
|00000810| 72 61 6c 20 61 73 20 61 | 20 0a 73 70 65 63 69 61 |ral as a| .specia|
|00000820| 6c 20 73 65 63 74 69 6f | 6e 29 20 61 6e 64 20 66 |l sectio|n) and f|
|00000830| 6f 72 20 74 68 61 74 20 | 72 65 61 73 6f 6e 20 49 |or that |reason I|
|00000840| 20 61 6d 20 61 73 6b 69 | 6e 67 20 68 65 72 65 2e | am aski|ng here.|
|00000850| 20 49 66 20 79 6f 75 20 | 6b 6e 6f 77 20 77 68 61 | If you |know wha|
|00000860| 74 20 0a 69 73 20 68 61 | 70 70 65 6e 69 6e 67 20 |t .is ha|ppening |
|00000870| 77 6f 75 6c 64 20 62 65 | 20 67 72 65 61 74 20 66 |would be| great f|
|00000880| 6f 72 20 6d 65 20 21 2e | 20 49 6e 20 61 64 76 61 |or me !.| In adva|
|00000890| 6e 63 65 2c 20 74 68 61 | 6e 6b 73 20 61 20 6c 6f |nce, tha|nks a lo|
|000008a0| 74 20 66 6f 72 20 79 6f | 75 72 20 0a 74 69 6d 65 |t for yo|ur .time|
|000008b0| 20 61 6e 64 20 68 65 6c | 70 2c 20 62 65 73 74 20 | and hel|p, best |
|000008c0| 77 69 73 68 65 73 2c 0a | 0a 0a 46 72 61 6e 63 69 |wishes,.|..Franci|
|000008d0| 73 63 6f 20 4d 65 6c 6f | 20 4c 65 64 65 72 6d 61 |sco Melo| Lederma|
|000008e0| 6e 6e 0a 0a 0a 6d 61 69 | 6c 74 6f 3a 66 6d 65 6c |nn...mai|lto:fmel|
|000008f0| 6f 40 62 69 71 2e 66 75 | 6e 64 70 2e 61 63 2e 62 |o@biq.fu|ndp.ac.b|
|00000900| 65 20 0a 0a 68 74 74 70 | 3a 2f 2f 62 69 71 2d 70 |e ..http|://biq-p|
|00000910| 63 31 2e 62 69 71 2e 66 | 75 6e 64 70 2e 61 63 2e |c1.biq.f|undp.ac.|
|00000920| 62 65 2f 69 6e 64 65 78 | 2e 68 74 6d 6c 0a 20 20 |be/index|.html. |
|00000930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000940| 20 20 20 20 20 20 20 20 | 0a 0a 0a | |... |
+--------+-------------------------+-------------------------+--------+--------+